package com.zly.mybatisdemo.service;

import com.zly.mybatisdemo.dao.EventMapper;
import com.zly.mybatisdemo.model.Event;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EventService {
    @Autowired
    private EventMapper eventMapper;

    public List<Event> findAllEvent()
    {
        return eventMapper.findAllEvent();
    }

    public int addEvent(Event event) {
        return eventMapper.addEvent(event);
    }
}
